<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // let arr = [88, 20, 10, 100, 50]
      // let bottom = 2
      // for (let i = 0; i < arr.length; i++) {
      //   if (Number(arr[i]) === 10) {
      //     bottom = i
      //   }
      // }
      // document.write(bottom)

      let New = [88, 20, 30, 100, 50]
      let none = -1
      for (let i = 0; i < New.length; i++) {
        if (New[i] === 10) {
          none = i
        }
      }
      document.write(none)
    </script>
  </body>
</html>
